package lib.bone.access.module.dict.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

/**
 * @Author : cg
 */

@Data
@ApiModel("纵向课题词典更新DTO")
public class NepuTopicDictUpdateDTO {
    @NotBlank(message = "纵向课题词典ID不可为空")
    @ApiModelProperty(value = "纵向课题词典ID",name = "id")
    String id;

    @NotBlank(message = "分类编码不可为空")
    @ApiModelProperty("分类编码")
    String code;
    /**
     * 纵向课题类型
     */
    @NotBlank(message = "纵向课题类型不可为空")
    @ApiModelProperty(value = "纵向课题类型",notes = "国家科技重大专项等")
    String topicType;

    /**
     * 纵向课题类别
     */
    @NotBlank(message = "纵向课题类别不可为空")
    @ApiModelProperty(value = "纵向课题类别",notes = "A1,A2,B1等")
    String topicLevel;

    /**
     * 纵向课题对应的工作量
     */
    @DecimalMin(value = "0",message = "最小工作量大于0")
    @ApiModelProperty(value = "工作量Min",notes = "获奖对应的最小工作量")
    Integer workloadMin;
    @DecimalMin(value = "0",message = "最大工作量大于0")
    @ApiModelProperty(value = "工作量Max",notes = "获奖对应的最大工作量")
    Integer workloadMax;
}
